package com.auerdi.ui.fragment.a_home.adapter.delegate;

import com.auerdi.R;
import com.auerdi.ui.fragment.a_home.adapter.items.HomeItemsBean;
import com.zhy.adapter.recyclerview.base.ItemViewDelegate;
import com.zhy.adapter.recyclerview.base.ViewHolder;

/**
 * Created by zhy on 16/6/22.
 */
public class ZisTextHeader implements ItemViewDelegate<HomeItemsBean> {

    @Override
    public int getItemViewLayoutId() {
        return R.layout.home_list_header;
    }
//    public int getItemViewLayoutId() {
//        return R.layout.item_home_d_goodlovelist;
//    }

    @Override
    public boolean isForViewType(HomeItemsBean item, int position) {

        return item.getRouter().contains("Header");
    }

    @Override
    public void convert(ViewHolder viewHolder, HomeItemsBean item, int position) {


//        List<Product> banners = (List<Product>) item.getItem();
        String product = (String) item.getItem();
        viewHolder.setText(R.id.text, product);


    }
}
